<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" lang="zh" xml:lang="zh">
<head>
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>工具向导: 使用 Rational Rose 管理协作图</title>
<meta content="ToolMentor" name="uma.type">
<meta content="manage_collaboration_diagram" name="uma.name">
<meta content="使用 Rational Rose 管理协作图" name="uma.presentationName">
<meta content="Tool:rup_rose_classic:Rational Rose" name="uma.category">
<meta name="element_type" content="tool_mentor">
<meta content="Rational Rose" name="tool">
<meta content="description" name="filetype">
<meta name="role" content="">
<link type="text/css" href="./../../../css/default.css" rel="StyleSheet">
<script language="JavaScript" type="text/javascript" src="./../../../scripts/ContentPageResource.js"></script><script language="JavaScript" type="text/javascript" src="./../../../scripts/ContentPageSection.js"></script><script language="JavaScript" type="text/javascript" src="./../../../scripts/ContentPageSubSection.js"></script><script language="JavaScript" type="text/javascript" src="./../../../scripts/ContentPageToolbar.js"></script><script language="JavaScript" type="text/javascript" src="./../../../scripts/contentPage.js"></script><script language="JavaScript" type="text/javascript">
					var backPath = './../../../';
					var imgPath = './../../../images/';
					var nodeInfo=[{view: "view:_LVCagP5WEdmAzesbYywanQ", path: ["_LVCagP5WEdmAzesbYywanQ", "_gpYSoAILEdq-_NKqZM1EhA", "_qS-iwAIOEdqTna4sZVFRow", "{06FB737B-5D74-4C3B-98F4-36153CFB2E34}", "{49ACA284-8922-4308-BEA7-2EDE22B77AA2}"]}, {view: "view:_LVCagP5WEdmAzesbYywanQ", path: ["_LVCagP5WEdmAzesbYywanQ", "_zRigkAILEdq-_NKqZM1EhA", "_U5tiUAISEdqTna4sZVFRow", "{06FB737B-5D74-4C3B-98F4-36153CFB2E34}", "{49ACA284-8922-4308-BEA7-2EDE22B77AA2}"]}, {view: "view:_LVCagP5WEdmAzesbYywanQ", path: ["_LVCagP5WEdmAzesbYywanQ", "_AUv4MAIMEdq-_NKqZM1EhA", "_5ZuQsAIUEdqEutyfYo0quQ", "{06FB737B-5D74-4C3B-98F4-36153CFB2E34}", "{49ACA284-8922-4308-BEA7-2EDE22B77AA2}"]}, {view: "view:_FCx1oN7CEdmsEI4YDGX2ag", path: ["_FCx1oN7CEdmsEI4YDGX2ag", "_jD8dUAIbEdqEutyfYo0quQ", "_F1OgYAIbEdqEutyfYo0quQ", "{06FB737B-5D74-4C3B-98F4-36153CFB2E34}", "{49ACA284-8922-4308-BEA7-2EDE22B77AA2}"]}];
					contentPage.preload(imgPath, backPath, nodeInfo,  '', false, false, false);
				</script>
</head>
<body>
<div id="breadcrumbs"></div>
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td valign="top"><a name="Top"></a>
<div id="page-guid" value="{49ACA284-8922-4308-BEA7-2EDE22B77AA2}"></div>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td nowrap="true" class="pageTitle">工具向导：使用 Rational Rose 管理协作图</td><td width="100%">
<div id="contentPageToolbar" align="right"></div>
</td>
</tr>
</table>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
<td class="pageTitleSeparator"><img height="1" title="" alt="" src="./../../../images/shim.gif"></td>
</tr>
</table>
<div class="overview">
<table cellpadding="0" cellspacing="0" border="0" width="97%">
<tr>
<td width="50"><img title="" alt="" src="./../../../images/toolmentor.gif"></td><td>
<table cellpadding="0" cellspacing="0" border="0" class="overviewTable">
<tr>
<td valign="top">此工具向导描述如何使用 Rational Rose 创建显示对象之间的交互的协作图。</td>
</tr>
<tr>
<td>工具：<a href="./../../../core.base_rup/tools/rup_rose_classic_20F2524D.html" guid="{06FB737B-5D74-4C3B-98F4-36153CFB2E34}">Rational Rose</a></td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<div class="sectionHeading">关系</div>
<div class="sectionContent">
<table cellpadding="0" cellspacing="0" border="0" class="sectionTable">
<tr valign="top">
<th scope="row" class="sectionTableHeading">相关元素</th><td class="sectionTableCell">
<ul>
<li>
<a href="./../../../core.base_rup/tasks/use_case_design_92D13EEE.html" guid="{76E2B93D-051C-4B8C-BEA1-B40A40CBD986}">用例设计</a>
</li>
<li>
<a href="./../../../core.base_rup/tasks/use_case_analysis_A6990185.html" guid="{28014615-A62F-452D-B821-30C7CAB0EC44}">用例分析</a>
</li>
</ul>
</td>
</tr>
</table>
</div>
<div class="sectionHeading">主要描述</div>
<div class="sectionContent">
<table cellpadding="0" cellspacing="0" border="0" class="sectionTable">
<tr valign="top">
<td class="sectionTableSingleCell"><a id="Top" name="Top"></a> 
<h3>
    概述
</h3>
<p>
    以下是使用协作图描述对象之间的交互要执行的步骤摘要：
</p>
<ol>
    <li class="mvd-P">
        <a href="#Create a Collaboration Diagram Under the Use Case Realization">在用例实现下创建协作图</a>
    </li>
    <li class="mvd-P">
        <a href="#Creating Objects">在协作图中创建对象</a>
    </li>
    <li class="mvd-P">
        <a href="#Creating Links between Objects">创建对象之间的链接</a>
    </li>
    <li class="mvd-P">
        <a href="#creating messages">创建对象之间的消息</a>
    </li>
</ol>
<p>
    有关协作图的详细信息，请参阅：
</p>
<ul>
    <li class="mvd-P">
        <p>
            <img height="16" alt="帮助手册图标" hspace="0" src="./../../../core.base_rup/resources/helpbook.gif" width="16" border="0" /> Rational
            Rose 联机帮助中的 <span style="FONT-STYLE: italic">Collaboration Diagrams (Overview)</span>
        </p>
    </li>
    <li class="mvd-P">
        <img height="15" alt="手册图标" hspace="0" src="./../../../core.base_rup/resources/book.gif" width="16" border="0" /> <i>Using Rational
        Rose</i> 手册中的 <span style="FONT-STYLE: italic">Chapter 4, Introduction to Diagrams</span> 和 <span         style="FONT-STYLE: italic">Chapter 9, Interaction Diagrams and Specifications</span>。
    </li>
</ul>
<h3>
    1. <a id="Create a Collaboration Diagram Under the Use Case Realization" name="Create a Collaboration Diagram Under the Use Case Realization"></a>在用例实现下创建协作图
</h3>
<p>
    为用例实现创建协作图时，请考虑将图命名为“&lt;用例名称&gt; － &lt;流类型&gt;”。此命名约定简化了对以后用例实现中参与对象的跟踪。并且，使用文档窗口为协作图所描述的场景输入简要简述。
</p>
<h3>
    2. <a id="Creating Objects" name="Creating Objects"></a>在协作图中创建对象
</h3>
<p>
    协作图是一种交互图，它显示消息实施操作或事务的顺序。协作图显示对象及其链接和消息。也可以包含简单的类实例和类实用程序实例。每个协作图都提供一个视图，该视图由当前模型中的对象和类似对象的实体之间发生的交互或结构关系组成。在此步骤中，您要执行以下操作：
</p>
<ul>
    <li class="mvd-P">
        <p>
            将参与者拖放到时序图上。
        </p>
    </li>
    <li class="mvd-P">
        向图添加对象，并确定对象所属的类。
    </li>
</ul>
<h3>
    3. <a id="Creating Links between Objects" name="Creating Links between Objects"></a>创建对象之间的链接
</h3>
<p>
    链接为两个对象／参与者提供交换消息的方式。链路是关联的一个实例，类似充当类实例的对象。
</p>
<h3>
    4. <a id="creating messages" name="creating messages"></a>创建对象之间的消息
</h3>
<p>
    消息是参与者和对象之间所作的沟通，表示将执行一个后续操作。它含有从源控制焦点到目标控制焦点的信息。在协作图中，消息图标可以代表多个消息。创建消息时，请使用“消息规范”中的文档字段来描述消息。
</p>
<p>
    协作图工具箱包含两个消息工具。转发消息工具（带有指向“东北方向”的一个箭头）将消息图标从客户端放置到供应端。退回消息工具（带有指向“西南方向”的一个箭头）将消息图标从供应端放置到客户端。消息的缺省同步方式为“简单”。
</p></td>
</tr>
</table>
</div>
<table cellpadding="0" cellspacing="0" border="0" class="copyright">
<tr>
<td class="copyright"><p>
    &copy; &nbsp;Copyright IBM Corp.&nbsp;1987, 2006. &nbsp;All Rights Reserved.
</p></td>
</tr>
</table>
</td>
</tr>
</table>
</body>
<script language="JavaScript" type="text/javascript">
				contentPage.onload();
			</script>
</html>
